package com.wlyuan.open.remote.feign;

import com.wlyuan.open.dto.top.OpenTopExtensionOrderSyncDTO;
import com.wlyuan.open.remote.feign.fallover.TopWebFeignFallOverFactory;
import com.wlyuan.tools.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lijing
 * @description
 */
@FeignClient(name = "tuopu-web", url = "${tuopu.client.url}", fallbackFactory = TopWebFeignFallOverFactory.class)
public interface TopWebFeignInvoker {

    @PostMapping("/order/rewrite")
    Result<Long> rewrite(@RequestBody OpenTopExtensionOrderSyncDTO creation);
}
